package com.ktjy.market.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.extension.toolkit.SqlHelper;
import com.ktjy.market.mapper.BackendUserMapper;
import com.ktjy.market.pojo.BackendUser;
import com.ktjy.market.service.BackendUserService;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author 秦羽墨
* @description 针对表【backend_user】的数据库操作Service实现
* @createDate 2024-05-13 17:14:35
*/
@Service
public class BackendUserServiceImpl extends ServiceImpl<BackendUserMapper, BackendUser>
    implements BackendUserService {

    @Resource
    private BackendUserMapper backendUserMapper;

    @Override
    public BackendUser login(String user, String password) {
        return backendUserMapper.login(user, password);
    }

    @Override
    public int getUserCount(String user) {
        return backendUserMapper.getUserCount(user);
    }
}




